package com.example.demo.controller.usercontroller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.common.Result;
import com.example.demo.entity.Expert;
import com.example.demo.service.ExpertService;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

/**
 * 专家表(Expert)表控制层
 *
 * @author makejava
 * @since 2025-01-28 12:22:30
 */
@RestController
@RequestMapping("user/expert")
public class ExpertController  {
    /**
     * 服务对象
     */
    @Resource
    private ExpertService expertService;



    @GetMapping("/list")
    @Operation(description = "获取专家列表")
    public Result<List<Expert>> list() {
        return Result.success(expertService.listAll());
    }
}

